package com.xxx;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author zr
 * @version 1.0
 * @date 2021/7/2 9:22
 */
@SpringBootApplication
public class AuApplication {
    public static void main(String[] args) {
        //这就是我们的spring核心容器
        ConfigurableApplicationContext context = SpringApplication.run(AuApplication.class, args);
        Object bean = context.getBean("jedisTemplate");
        System.out.println(bean);
    }
}
